<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.css">
<link rel="stylesheet" href="css/pager.css">
<style type="text/css">
	.row > div {
		margin-bottom: 30px;
	}
</style>
</head>
<body>
	<%@ include file="/adminHeader.jsp"%>
	<div class="container">

		<form action="bookManager/getAuthor">
		<input type="hidden" value="${requestScope.type }" name="type">	
		<input type="hidden" value="${param.bookId }" name="bookId">	
		<table class="table table-hover">
			<tr>
				<th class="text-center">操作</th>
				<th class="text-center">作者</th>

			</tr>
			<c:forEach items="${requestScope.authors}" var="author">
			<tr class="text-center">
				<td><input type="radio" value="${author.id}" name="authorId"></td>
				<td>${author.name}</td>
			</tr>
			</c:forEach>
		</table>
		<input class="btn btn-primary" type="submit" value="确认"/>
		</form>
	</div>
</body>
</html>